FROM envoyproxy/envoy:latest

ARG MODE
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
COPY . /code/

RUN apt-get update && \
    apt-get install -y python3 bash gcc python3-dev python3-pip \
                       build-essential libssl-dev python-dev libreadline-dev libfreetype6-dev libjpeg-dev libpq-dev \
                       libpcre3 libpcre3-dev libffi-dev libxml2-dev libxslt-dev libbz2-dev
RUN python3 --version && pip3 --version
